<%@page import="org.h2.util.New"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"  import="org.springframework.ui.ModelMap" import="java.util.*,com.device.operating.entity.*"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../xasj/js/jquery-1.4.js"></script>
<script type="text/javascript" src="../xasj/js/framework.js"></script>
<script type="text/javascript" src="../xasj/js/form/multiselect.js"></script>
<script type="text/javascript" src="../xasj/js/form/stepForm.js" ></script>
<link  rel="stylesheet" type="text/css" id="skin"/>
<link href="../xasj/css/import_basic.css" rel="stylesheet" type="text/css"/>
<link href="../xasj/css/skins/sky/import_skin.css" rel="stylesheet" type="text/css" themeColor="blue"/>
<script type="text/javascript">
function go(url) {
	window.location.href = url;
	}
</script>
</head>
<%
List<String> listjd=new ArrayList<String>();
List<String> listport=new ArrayList<String>();
List<Jifang> lj=new ArrayList<Jifang>();
String ywxq="";
String yhrl="";
String oltjf="";
String sljf="";
if(request.getAttribute("lj")!=null)
	lj=(List<Jifang>)request.getAttribute("lj");
if(request.getAttribute("listjd")!=null)
	listjd=(List<String>)request.getAttribute("listjd");
if(request.getAttribute("listport")!=null)
	listport=(List<String>)request.getAttribute("listport");
if(request.getAttribute("ywxq")!=null)
	ywxq=request.getAttribute("ywxq").toString();
if(request.getAttribute("yhrl")!=null)
	yhrl=request.getAttribute("yhrl").toString();
if(request.getAttribute("oltjf")!=null)
	oltjf=request.getAttribute("oltjf").toString();
if(request.getAttribute("sljf")!=null)
	sljf=request.getAttribute("sljf").toString();
%>
<body>
<div class="position">
	<div class="center">
	<div class="left">
	<div class="right">
		<span>当前位置：数据操作>> Olt开局</span>
	</div>	
	</div>	
	</div>
</div>	
<div id="scrollContent">
<div class="box1" panelWidth="1000">
<form method="post" action="" class="stepForm" >
	<div id="step1" class="box2" stepFormTitle="">
		<table class="tableStyle" >
			<tr>
				<td colspan="15"><div align="center">GPON开局数据资源申请表</div></td>
			</tr>
			<tr>
				<td colspan="10">业务需求</td><td colspan="10"><%=ywxq%></td>
			</tr>
			<tr>
				<td colspan="10">设计用户容量</td><td colspan="10"><%=yhrl%></td>
			</tr>
			<tr>
				<td colspan="10">OLT机房</td><td colspan="10"><%=oltjf%></td>
			</tr>
			<tr>
				<td colspan="10">上联机房</td><td colspan="10"><%=sljf%></td>
			</tr>
			<tr>
			<td colspan="10">请选择设备机房：</td><td colspan="10"><%=sljf%></td>
			</tr>
		</table>
	</div>	
		<div class="box2" stepFormTitle="">
		<table class="tableStyle" >
		<tr>
		<td>节点名称</td><td>上联端口</td><td>OLT端口</td>
		</tr>			
			<%for(int i=0;i<listport.size();i++){
			String[] st=listport.get(i).split(",");
			%>
			<tr>
				<td><%=st[0]%></td><td><%=st[2]%></td><td><%=st[1]%></td>
			</tr>
		<%}%>
		</table>
	</div>	
		
		<div  class="stepForm" stepFormTitle="">
		<table class="tableStyle" >
		<tr>
			<td colspan="13"><div align="center">工单内容</div></td>
		</tr>
		<tr>
		<td>请选择设备机房：</td>
		<td><select name="jf" colNum="5" class="validate[required]">
		<%
		for(Jifang jf:lj){%>
		<option  value="<%=jf.getJfId()+","+jf.getDjxId()%>"><%=jf.getJfname()%></option>			
		<%}%>
		</select>
		</td>
		</tr>
		<tr>
		<td>节点名称/编号</td><td>设备型号/PON口数</td><td style="width:145px;">pppoe vlan(请填)</td><td>管理ip</td><td>管理网关</td><td>管理vlan</td><td>voip vlan</td><td>iptv vlan</td><td>ylvlan</td>
		</tr>			
			<%for(int i=0;i<listjd.size();i++){
			String[] st=listjd.get(i).split(",");
			%>
			<tr>
				<td style="width:180px;"><input type="text" name="oltname" value="<%=st[0]%>"/> <input style="width:30px;" type="text" name="oltnum" value="<%=st[3]%>"/></td>
				<td style="width:150px;"><input style="width:80px;" type="text" value="<%=st[1]%>" name="oltmodel"/> <input style="width:30px;" type="text" value="<%=st[2]%>" name="oltponnum"/>PON口</td>
				<td>起始<input style="width:40px;" type="text" name="pppvlanbegin"/> 结束<input style="width:40px;" type="text" name="pppvlanend"/></td>
				<td>管理ip</td><td>管理网关</td><td>pppoe vlan</td><td>voip vlan</td><td>iptv vlan</td><td>ylvlan</td>
			</tr>
		<%}%>
		</table>
	</div>	
	<div class="box2" >
	<input type='submit' onclick="javascript:this.form.action='/xasj/gpkjdetail';"value='下一步' >
	</form>
</div>
</form>
</div>
</div>	
</body>
</html>